package com.weiyuwqj.server.mapper;

import com.weiyuwqj.api.model.BusBonusRebate;
import com.weiyuwqj.api.model.vo.BusBonusRebateVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;
@Repository
public interface BusBonusRebateMapper extends Mapper<BusBonusRebate> {
    BusBonusRebate getByOrderNo(String orderNo);

    int updateStatusByOrderNo(@Param("orderNo")String orderNo,@Param("oldStatus")Integer oldStatus,@Param("newStatus")Integer newStatus);

    List<BusBonusRebateVo> getList(Map map);
}